import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQml 2.3

Label{
    id: label
    x: 100
    y: 100
    text: "12312"

    MouseArea {
        cursorShape: Qt.DragMoveCursor
        anchors.fill: parent
        drag.target: label
        drag.axis: Drag.XAndYAxis
    }
}

